package cn.sq.scaffold.ffmpeg.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: SQ
 * Date: 2020/11/18
 * Time: 14:12
 * Description: 常量
 */
@Component
public class FfmpegConstants {

    public static String INPUTFILEPATH = "";     //源文件地址

    public static String OUTPUTFILEPATH = "";     //生成文件地址

    public static String FFMPEGPATH = "";     // FFMPEG文件地址

    public static String IMAGEPATH = "";     // FFMPEG文件地址

    public static String UPLOADIMAGE = "";     // 固定上传图片地址

    public static String UPLOADVIDEO = "";     // 固定上传视频地址


    /**
     * =======================================================================
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * 设置属性
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * <p>
     * =========================================================================
     */


//    public  String inputfilepath = "";     //源文件地址
//
//    public  String outputfilepath = "";     //生成文件地址
//
//    public  String ffmpegpath = "";     // FFMPEG文件地址

    @Value("${outputfilepath}")
    public void setOutputfilepath(String outputfilepath) {
        this.OUTPUTFILEPATH = outputfilepath;
    }

    @Value("${ffmpegpath}")
    public  void setFfmpegpath(String ffmpegpath) {
        this.FFMPEGPATH = ffmpegpath;
    }

    @Value("${inputfilepath}")
    public  void setInputfilepath(String inputfilepath) {
        this.INPUTFILEPATH = inputfilepath;
    }

    @Value("${imagepath}")
    public  void setImagepath(String imagepath) {
        this.IMAGEPATH = imagepath;
    }

    @Value("${uploadimage}")
    public  void setUploadimage(String uploadimage) {
        this.UPLOADIMAGE = uploadimage;
    }

    @Value("${uploadvideo}")
    public  void setUploadVideo(String uploadvideo) {
        this.UPLOADVIDEO = uploadvideo;
    }
}
